import 'package:word_game/engine/core.dart';

class SearchThingEvent extends Eventable {
  String thingCode = '';
  SearchThingEvent(String thingCode) : super('搜索') {
    this.thingCode = thingCode;
  }
  
  @override
  void doEvent(owner) {
    World.instance.hero.getThing(MaterialManager.instance.newMaterialWithCode(thingCode));
  }
}